package cn.rongdao.jrkabao.model.deposit;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.deposit.MyAccountBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/7/31
 */

public class MyAccountModel extends BaseKaMaoModel {

    public static MyAccountModel getInstance() {
        return getPresent(MyAccountModel.class);
    }

    public void execute(Observer<MyAccountBean> observer) {
        Observable<MyAccountBean> observable = mServletApi.getMyAccountInfo(mParams).map(new HttpFunction<MyAccountBean>());
        toSubscribe(observable, observer);
    }
}
